package com.ee.chat.common.serconfig;

import com.ndhutu.ee.util.ali.oss.OSSConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author Shane
 * @Date 2019/9/11 23:05
 */
@Component
public class MyAliOSSConfig implements OSSConfig {
    @Value("${ali.accessKey.accessKeyId}")
    private String accessKeyId;
    @Value("${ali.accessKey.accessKeySecret}")
    private String accessKeySecret;
    @Value("${ali.oss.endpoint}")
    private String endpoint;
    @Value("${ali.oss.bucketName}")
    private String bucketName;
    @Value("${ali.oss.callback}")
    private String callback;

    @Override
    public String getEndpoint() {
        return endpoint;
    }

    @Override
    public String getAccessKeyId() {
        return accessKeyId;
    }

    @Override
    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    @Override
    public String getBucketName() {
        return bucketName;
    }

    @Override
    public String getCallback() {
        return callback;
    }
}
